import request from '@/utils/request'

// 查询上报内容列表
export function listReport(query) {
  return request({
    url: '/buss/report/list',
    method: 'get',
    params: query
  })
}

// 查询月汇总
export function month(query) {
  return request({
    url: '/buss/report/month',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean(data) {
    return request({
        url: '/buss/report/initBean',
        method: 'post',
        data: data
    })
}

// 查询上报内容详细
export function getReport(reportid) {
  return request({
    url: '/buss/report/' + reportid,
    method: 'get'
  })
}

// 新增上报内容
export function addReport(data) {
  return request({
    url: '/buss/report',
    method: 'post',
    data: data
  })
}

// 修改上报内容
export function updateReport(data) {
  return request({
    url: '/buss/report',
    method: 'put',
    data: data
  })
}

// 删除上报内容
export function delReport(reportid) {
  return request({
    url: '/buss/report/' + reportid,
    method: 'delete'
  })
}
